package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 工人对象 worker
 * 
 * @author ruoyi
 * @date 2025-06-23
 */
public class Worker extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 工人id */
    private Long workerId;

    /** 工人姓名 */
    @Excel(name = "工人姓名")
    private String fullName;

    /** 性别 */
    @Excel(name = "性别")
    private String gender;

    /** 雇佣日期 */
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    @Excel(name = "雇佣日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date hireDate;

    /** 职位 */
    @Excel(name = "职位")
    private String jobTitle;

    /** 工资 */
    @Excel(name = "工资")
    private BigDecimal salary;

    /** 工厂id */
    @Excel(name = "工厂id")
    private Long factoryId;

    /** 工厂名称 */
    @Excel(name = "工厂名称")
    private String factoryName;

    public String getFactoryName() {
        return factoryName;
    }

    public void setFactoryName(String factoryName) {
        this.factoryName = factoryName;
    }

    public void setWorkerId(Long workerId)
    {
        this.workerId = workerId;
    }

    public Long getWorkerId() 
    {
        return workerId;
    }

    public void setFullName(String fullName) 
    {
        this.fullName = fullName;
    }

    public String getFullName() 
    {
        return fullName;
    }

    public void setGender(String gender) 
    {
        this.gender = gender;
    }

    public String getGender() 
    {
        return gender;
    }

    public void setHireDate(Date hireDate) 
    {
        this.hireDate = hireDate;
    }

    public Date getHireDate() 
    {
        return hireDate;
    }

    public void setJobTitle(String jobTitle) 
    {
        this.jobTitle = jobTitle;
    }

    public String getJobTitle() 
    {
        return jobTitle;
    }

    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }

    public void setFactoryId(Long factoryId) 
    {
        this.factoryId = factoryId;
    }

    public Long getFactoryId() 
    {
        return factoryId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("workerId", getWorkerId())
            .append("fullName", getFullName())
            .append("gender", getGender())
            .append("hireDate", getHireDate())
            .append("jobTitle", getJobTitle())
            .append("salary", getSalary())
            .append("factoryId", getFactoryId())
            .toString();
    }
}
